
#include<SDL.h>
#include "colision.h"
struct {
    int x,y,height,width;
} typedef Rectangle;

int enCollision(Rectangle rectangle1, Rectangle rectangle2)
{
if(rectangle1.x+rectangle1.width > rectangle2.x &&
   rectangle1.x < rectangle2.x+rectangle2.width &&
   rectangle1.y+rectangle1.height > rectangle2.y &&
   rectangle1.y < rectangle2.y+rectangle2.height)
   return 1;
   else return 0;

}
